package cn.bgs.serviceedu.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.time.LocalDateTime;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author YiChen
 * @since 2021-11-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="Video对象", description="")
public class Video implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "视频id")
    @TableId(value = "vod_id", type = IdType.AUTO)
    private Integer vodId;

    @ApiModelProperty(value = "视频名称")
    private String vodName;

    @ApiModelProperty(value = "播放次数")
    private Integer playCount;

    @ApiModelProperty(value = "视频时长")
    private Float duration;

    @ApiModelProperty(value = "资源id")
    private String videoSourceId;

    @ApiModelProperty(value = "视频封面")
    private String vodImg;

    @ApiModelProperty(value = "视频地址")
    private String vodUrl;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date modifiedTime;

    @ApiModelProperty(value = "逻辑删除ID (0未删除 ,1已删除)")
    @TableLogic(value = "0",delval = "1")
    @TableField(fill = FieldFill.INSERT)
    private Integer deleteFlag;

}
